package com.qms.qep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 证书编号规则对象 certificate_number_rule
 * 
 * @author qms
 */
public class CertificateNumberRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 模板ID */
    @Excel(name = "模板ID")
    private Long templateId;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String ruleName;

    /** 前缀 */
    @Excel(name = "前缀")
    private String prefix;

    /** 日期格式 */
    @Excel(name = "日期格式")
    private String dateFormat;

    /** 序列长度 */
    @Excel(name = "序列长度")
    private Integer sequenceLength;

    /** 分隔符 */
    @Excel(name = "分隔符")
    private String separator;

    /** 是否包含产品代码 */
    @Excel(name = "是否包含产品代码")
    private Boolean productCodeEnabled;

    /** 是否包含批次号 */
    @Excel(name = "是否包含批次号")
    private Boolean batchNoEnabled;

    /** 自定义字段 */
    @Excel(name = "自定义字段")
    private String customField;

    /** 状态（启用/禁用） */
    @Excel(name = "状态", readConverterExp = "启用=启用,禁用=禁用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }

    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }

    public void setPrefix(String prefix) 
    {
        this.prefix = prefix;
    }

    public String getPrefix() 
    {
        return prefix;
    }

    public void setDateFormat(String dateFormat) 
    {
        this.dateFormat = dateFormat;
    }

    public String getDateFormat() 
    {
        return dateFormat;
    }

    public void setSequenceLength(Integer sequenceLength) 
    {
        this.sequenceLength = sequenceLength;
    }

    public Integer getSequenceLength() 
    {
        return sequenceLength;
    }

    public void setSeparator(String separator) 
    {
        this.separator = separator;
    }

    public String getSeparator() 
    {
        return separator;
    }

    public void setProductCodeEnabled(Boolean productCodeEnabled) 
    {
        this.productCodeEnabled = productCodeEnabled;
    }

    public Boolean getProductCodeEnabled() 
    {
        return productCodeEnabled;
    }

    public void setBatchNoEnabled(Boolean batchNoEnabled) 
    {
        this.batchNoEnabled = batchNoEnabled;
    }

    public Boolean getBatchNoEnabled() 
    {
        return batchNoEnabled;
    }

    public void setCustomField(String customField) 
    {
        this.customField = customField;
    }

    public String getCustomField() 
    {
        return customField;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("ruleName", getRuleName())
            .append("prefix", getPrefix())
            .append("dateFormat", getDateFormat())
            .append("sequenceLength", getSequenceLength())
            .append("separator", getSeparator())
            .append("productCodeEnabled", getProductCodeEnabled())
            .append("batchNoEnabled", getBatchNoEnabled())
            .append("customField", getCustomField())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
} 